package cn.tedu.online.day10;

public class ClassCastExceptioNDemo {
    public static void main(String[] args) {
//        Person person = new Student();
//        Teacher teacher = (Teacher) person;

//        String str = "122h";
//        int i = Integer.parseInt(str);
//        System.out.println(i);
        int i=1;
        byte b = 2;
        short s = 4;
        long l = 3;
        char c = 'a';
        float f = 3.2f;
        double d=3.4;
        String str = "he";
        Integer in = new Integer(2);
        switch (in){

        }
    }
}

class Person{}

class Student extends Person{}

class Teacher extends Person{}
